package com.edoomath.api.web.controller.course;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.demo2do.core.entity.result.HttpResult;
import com.edoomath.api.servcice.UserCourseTaskMediaService;

/**
 * 
 * @author mohanlan
 *
 */
@Controller
@RequestMapping("/course-material-categories")
public class UserCourseTaskMediaController {
	
	@Autowired
	private UserCourseTaskMediaService userCourseTaskMediaService;
	
	@RequestMapping(value = "", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public HttpResult init() {
		
		HttpResult httpResult = new HttpResult();
		
		userCourseTaskMediaService.init();
		
		return httpResult.success().message("初始化成功");
		
	}
	
}
